Optimal. Leaf size=26 \[ -\frac {a \cos (c+d x)}{d}-\frac {b \log (\cos (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {3957, 2800, 45}
\begin {gather*} -\frac {a \cos (c+d x)}{d}-\frac {b \log (\cos (c+d x))}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 2800
Rule 3957
Rubi steps
\begin {align*} \int (a+b \sec (c+d x)) \sin (c+d x) \, dx &=-\int (-b-a \cos (c+d x)) \tan (c+d x) \, dx\\ &=\frac {\text {Subst}\left (\int \frac {-b+x}{x} \, dx,x,-a \cos (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (1-\frac {b}{x}\right ) \, dx,x,-a \cos (c+d x)\right )}{d}\\ &=-\frac {a \cos (c+d x)}{d}-\frac {b \log (\cos (c+d x))}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 37, normalized size = 1.42 \begin {gather*} -\frac {a \cos (c) \cos (d x)}{d}-\frac {b \log (\cos (c+d x))}{d}+\frac {a \sin (c) \sin (d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 26, normalized size = 1.00
method | result | size |
derivativedivides | \(\frac {-\frac {a}{\sec \left (d x +c \right )}+b \ln \left (\sec \left (d x +c \right )\right )}{d}\) | \(26\) |
default | \(\frac {-\frac {a}{\sec \left (d x +c \right )}+b \ln \left (\sec \left (d x +c \right )\right )}{d}\) | \(26\) |
risch | \(i b x +\frac {2 i b c}{d}-\frac {b \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}{d}-\frac {a \cos \left (d x +c \right )}{d}\) | \(45\) |
norman | \(\frac {2 a \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+\frac {b \ln \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}-\frac {b \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{d}-\frac {b \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{d}\) | \(89\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 23, normalized size = 0.88 \begin {gather*} -\frac {a \cos \left (d x + c\right ) + b \log \left (\cos \left (d x + c\right )\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 4.82, size = 25, normalized size = 0.96 \begin {gather*} -\frac {a \cos \left (d x + c\right ) + b \log \left (-\cos \left (d x + c\right )\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \sec {\left (c + d x \right )}\right ) \sin {\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 32, normalized size = 1.23 \begin {gather*} -\frac {a \cos \left (d x + c\right )}{d} - \frac {b \log \left (\frac {{\left | \cos \left (d x + c\right ) \right |}}{{\left | d \right |}}\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 23, normalized size = 0.88 \begin {gather*} -\frac {a\,\cos \left (c+d\,x\right )+b\,\ln \left (\cos \left (c+d\,x\right )\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________